package mx.kolobok.noteeditor.ui;

import mx.kolobok.noteeditor.ui.keymap.actions.CopyAction;
import mx.kolobok.noteeditor.ui.keymap.actions.CutAction;
import mx.kolobok.noteeditor.ui.keymap.actions.PasteAction;

import javax.swing.*;
import javax.swing.text.JTextComponent;

/**
 * User:  Nikita Belenkiy
 * Date: 20.05.11
 * Time: 4:27
 */
class MyPopupMenu extends JPopupMenu {

    public MyPopupMenu(JTextComponent textComponent) {
        add(new CopyAction(textComponent));
        add(new CutAction(textComponent));
        add(new PasteAction());
    }
}
